package com.lyl.domaindemo.domain.export;

import org.springframework.stereotype.Service;

import java.util.Optional;

/**
 * @author lyl
 * @date 2023/6/8
 */
@Service
public class CommonExportService {

    private final CommonExportServiceRepository commonExportServiceRepository;

    public CommonExportService(CommonExportServiceRepository commonExportServiceRepository) {
        this.commonExportServiceRepository = commonExportServiceRepository;
    }

    public CommonExport commonExport(String id) {
        Optional<CommonExport> commonExport = commonExportServiceRepository.commonExport(id);
        return commonExport.orElse(null);
    }
}
